package com.pfsoft.controller;

import com.pfsoft.models.SysUser;
import com.pfsoft.repository.SysUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by nihao on 2018-03-21.
 */
@Controller
public class IndexController {

    @Autowired
    private SysUserRepository sysUserRepository;

    @RequestMapping("/")
    public String index()
    {
        SysUser asdf = sysUserRepository.findByUsername("asdf");
        return "index";
    }

/*    @RequestMapping("/login")
    public String landing()
    {
        return "login";
    }*/

}
